package com.vm.classloader;


import java.sql.DriverManager;

public class Client2 {
    public static void main(String[] args) {
        //1通过当前类获取类加载器
//        ClassLoader classLoader = Client2.class.getClassLoader();
//        System.out.println(classLoader);
        //通过线程获取类加载器
//        ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
//        System.out.println(contextClassLoader);
        //当前系统的ClassLoader
//        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
//        System.out.println(systemClassLoader);
        //获取调用者的ClassLoader

    }
}
